import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './plugins/element.js'
import './assets/css/global.css'
import './assets/fonts/iconfont.css'
import  {request} from './network/request'
Vue.prototype.$http = request;
// 不同服务器地址配置axios实例
// Vue.prototype.$http1 = axios.create({
//   baseURL:'http://127.0.0.1:8888/api/admin_sys/',
//   timeout : 5000,
// });

//axios全局配置
// Vue.prototype.$http = axios;
// axios.defaults.baseURL='http://127.0.0.1:8888/api/admin_sys/';
// axios.defaults.headers.post['Content-Type']='application/x-www-form-urlencoded';
// axios.defaults.timeout = 5000
// //请求头拦截器
// axios.interceptors.request.use(config=>{
//   console.log(config)
//   config.headers.Authorization = window.sessionStorage.getItem("token");
//   return config;
// })


Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
